package P123;

public class CPU {
    private int speed;

    public CPU() {
    }

    public CPU(int speed) {
        this.speed = speed;
    }

    /**
     * 获取
     * @return speed
     */
    public int getSpeed() {
        return speed;
    }

    /**
     * 设置
     * @param speed
     */
    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public String toString() {
        return "CPU{speed = " + speed + "}";
    }
}
